<h3>Deposit Fund from Perfect Money</h3>    

<div class="form">
    <?php
    $form = $this->beginWidget('CActiveForm', array(
        'action' => 'https://perfectmoney.com/api/step1.asp',
        'method' => 'POST',
        'id' => 'deposit-form-lr',
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
    ));
    
    $payementId = strtoupper(md5(uniqid()));
    $_SESSION['PAYMENT_ID'] = $payementId;
    ?>
    <fieldset  class="details">
        <legend>Overview of transfer</legend>

        Amount to Transfer: $<strong><?php echo trim($model->amount); ?></strong><br />
        Currency: <strong>USD</strong><br />
        Perfect Money Merchant: <strong>Viewinvesta</strong>
        <br />
        
        <input type="hidden" name="PAYEE_ACCOUNT" value="U6453906" />
        <input type="hidden" name="PAYEE_NAME" value="Viewinvesta" />
        <input type="hidden" name="PAYMENT_AMOUNT" value="<?php echo trim($model->amount); ?>" />
        <input type="hidden" name="PAYMENT_UNITS" value="USD" />
        <input type="hidden" name="STATUS_URL" value="<?php echo Yii::app()->createAbsoluteUrl('memberPosition/pmStatus') ?>" />
        <input type="hidden" name="PAYMENT_URL" value="<?php echo Yii::app()->createAbsoluteUrl('memberPosition/pmPaymentStatus') ?>" />
        <input type="hidden" name="NOPAYMENT_URL" value="<?php echo Yii::app()->createAbsoluteUrl('memberPosition/pmNoPaymentStatus') ?>" />
        <input type="hidden" name="NOPAYMENT_URL_METHOD" value="GET" />
        <input type="hidden" name="PAYMENT_URL_METHOD" value="GET" />
        <input type="hidden" name="PAYMENT_ID" value="<?php echo $payementId; ?>" />
        <div class="row buttons">
            <br/><?php echo CHtml::submitButton('Process'); ?>
        </div>
        <?php $this->endWidget(); ?>
    </fieldset>
</div>